Part Number Hot Search : 
C3V3E2 MR83C MB95160M V120ZA4 KO121A 74HC4051 15A10 MB95160M
Product Description
Full Text Search
 

To Download AN987 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 AN987 APPLICATION NOTE
ST7 SERIAL TEST CONTROLLER PROGRAMMING
by Microcontroller Division Applications
INTRODUCTION
This application note describes: - The advantages of Serial Test Controller Programming (STCP) vs. programming using an EPROM programming board (EPB) (see Section 2.1). - How to implement Serial Test Controller Programming targeting most of the ST7 general purpose microcontrollers (see Section 2.2). These devices include all parts supported by the ST7 starter kits and ST7 EPBs in the MDT1, MDT2 and MDT4 tool families (see the supported device list in APPENDIX 1). Note: In this application note, the term "programming tool" refers to either the EPBs or the starter kits.
1 PROGRAMMING TECHNIQUES
There are two possible ways of programming an ST7 device:
s
Using a programming tool. In this case, the device is first plugged on the programming board and then programmed. Then, the part is soldered or plugged into a socket on the user board. This can be done using any of the following ST7 programming tools: - ST7 Starter Kit - ST7 EPB (EPROM Programming Board) - ST7 Gang Programmer For further details about the above tools, please refer to the user manual supplied with these devices.
s
Using a Serial Test Controller Programming (STCP) tool. This technique allows a device to be directly programmed on the user board. This is a two-step procedure where first the board is first manufactured with a blank ST7, and afterwards the chip is programmed using a programming tool (Starter Kit or EPB). This application note describes the STCP method only.
AN987/1000
1/10
1
ST7 SERIAL TEST CONTROLLER PROGRAMMING
2 SERIAL TEST CONTROLLER PROGRAMMING
2.1 ADVANTAGES The advantages of STCP are numerous:
s
Time to market To reduce manufacturing cycle times, a user board can be designed to be generic, supporting several functions. These functions can be enabled or disabled by software according to customer requirements. In this case, STCP allows application boards to be manufactured in one shot and programmed with different functions according to customer needs and orders. Cost reduction Software updates may be necessary in some cases because of a bug correction or a newly implemented feature. The STCP is a flexible and painless way of performing such modifications and at a lower cost. There is no need to add any sockets to the board or to unsolder and change components in order to upgrade the application. Security Because STCP offers an easy way to customise the user's program, or part of it, it can be used to insert different key codes for each board. This could be used, for example, in a door lock system. Flexibility For example, STCP can be used to allow calibration procedures to be performed directly in the field.
s
s
s
2.2 USER BOARD SPECIFICATION The user has to design his layout in order to support two modes: programming mode and user mode. Figure 1. shows the user board divided into two blocks:
s
Block 1:
Includes all the components that play a role during programming mode: - Connector J1, which links the user board to the programming tool. - The ST72 MCU, which is the device to be programmed. - Jumpers W1 to Wn, whose purpose is to isolate the pins used for programming the ST72 from the other components in Block 2. In some application configurations, isolation resistors (47 k) can be used instead of jumpers.
s
Block 2: This block consists of all the other components soldered on the user board.
2/10
2
ST7 SERIAL TEST CONTROLLER PROGRAMMING
Figure 1. User Board
7 y px A! 7 y pxA
-
67
:Q
:
Now, let's define the pins used for programming the ST7. These pins are put together in the W1 connector implemented in all the ST programming tool boards (see Section 3 APPENDIX 1 for the pin connector assignment). All the ST7 programming tools referred to in this note (ST7 starter kits and ST7 EPBs in the MDT1, MDT3 and MDT4 tool families) use a programming technique called JTAG (Joint Test Action Group). These programming tools control 11 pins:
s
5 JTAG pins and 3 test mode pins, which are used for loading the software code into the ST7. These pins are: - Pin TCK: the test clock (input), - Pin TMS: the Test Mode Select (input, weak pull-up), - Pin TRST0: the Reset (Input, weak pull-up, active low) - Pin TDI: the Test Data In (input, weak pull-up). This is the serial data input, sampled on the rising edge of TCK. - Pin TDO: the Test Data Out (tri-state output). This is the serial data output, updated on the falling edge of TCK. - Pins M0, M1 and M2: These 3 pins are used to force the test modes. Depending on the device selected, these 8 pins will be associated with different pin numbers (see APPENDIX 1).
3/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
If these pins need to be tied to VDD or VSS, or if they are used by the user's application, they must be isolated from the user circuitry during programming. To do so, a jumper can be added for each of the eight pins (see Figure 2.). Note: Isolation resistors (47 k) can be used instead of jumpers only if these pins are used by the application as input (without Pull-up, without pull-down, or analog input configuration).
s
3 system pins, VPP/TEST, RESET and OSCIN, which must be connected as follows: - The VPP/TEST pin must not be directly connected to GND/VSS on the application board in order to avoid any conflict with the programming voltage. This pin should be pulled down by a 10 k resistor (see Figure 2.). - The RESET pin controls the entry into programming mode. This pin must be connected to a 10 k pull-up resistor and a 1 nF capacitor connected to GND (see Figure 2.) to avoid any direct connections to VSS. This pin can be connected to a 47 k isolation resistor if an external reset is provided by the application board. - The OSCIN pin synchronizes the programming operation using a clock generated by the programming tool. The OSCIN pin can be directly connected to the J1 connector. No isolation is needed as long as a quartz crystal or ceramic resonator is used in the application. If an external clock generator is used in the application, it must be disconnected during STC programming. Note: The OSCOUT pin does not need to be disconnected during the programming phase as long as a crystal, a ceramic resonator or an external clock source is used to drive the internal oscillator (user mode only).
s
The VDD and VSS power supply pins. The use of the VDD connection is optional, depending on whether the application board supply can be disconnected or not. If the application board supply is disconnected, the chip can be supplied through the programming tool (as long as the total current load does not exceed 100 mA and the capacitive load is less than 50 F). In this case, only 1 jumper needs to be added in order to disconnect the VPP pin from the user circuitry during the programming sequence. No jumper is needed for VSS (see Figure 2.). If you want to use the application board power supply, its voltage must be 5 V, so that logic levels are compatible with those of the programming tool. Note: In any case, the ground from the application board and the ground from the programming tool must be connected together (see Figure 2.).
4/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
Figure 2. Block 1
To block2
M0 M1 M2 VPP/TEST 10 k VDD 10 k Reset
OSCIN OSCOUT
VDD appli
VSS Tck Tms Trst0 Tdi Tdo
To block2
J1
Jumper or 47 k isolation resistor (depending on the application configuration, refer to the note on page 3). Jumper use to disconnect the Application board supply if it is not 5 V. If the application board supply can be used, remove this jumper and remove the connection between pin VDD and connector J1.
The ST7 programming tool is connected to the user board via connector J1.
5/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
2.3 PROGRAMMING PROCEDURE Depending on the device you need to program, use one of these ST7 programming tools:
s
ST7 MDT1-KIT or ST7 MDT1-EPB. They cover the following devices: - ST72101G1 or G2 - ST72212G2 - ST72213G1 - ST72251G1 or G2
s
ST7 MDT2-KIT or ST7 MDT4-EPB. They cover the following devices: - ST72121J2 or J4 - ST72311J2 or J4 - ST72311N2 or N4 - ST72331J2 or J4 - ST72331N2 or N4
s
ST7 MDT4-KIT or ST7 MDT4-EPB. They cover the following devices: - ST72272K2 or K4 - ST72372J4 - ST72371N4 - ST72671N4 or N6
After selecting the appropriate programming tool, proceed as follows: 1. On the application board, remove all jumpers. 2. Locate the 16 pin connector W1 (8x2 header HE10) on the programming tool which contains the 12 signals necessary for performing STCP (see Section 3 APPENDIX 1 for the pin identification).Then connect the W1 connector of the programming tool to the application board connector (J1 in Figure 1.). 3. Using the parallel interface cable, connect the PC parallel port to the parallel connector of the programming tool. 4. Power on the PC and the board. On the programming tool, LED 1 must light up. 5. Start the Windows EPROMer, target the programming tool, then the correct device. Open the file containing the code to program. And... program your device! 6. Close the operating software, power down the programming tool, disconnect the application board from the programming tool and replace any jumpers that were disconnected on the application board. Your application is now ready to run!
6/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
3 APPENDIX 1
The following table lists the devices supported by this application note and the specific starter kit required for each sales type.
Sales Type
ST72x101G1 ST72x101G2 ST72x212G2 ST72x213G1 ST72x251G1 ST72x251G2 ST72x121J2 ST72x121J4 ST72x311J2 ST72x311J4 ST72x311N2 ST72x311N4 ST72x331J2 ST72x331J4 ST72x331N2 ST72x331N4 ST72x272K2 ST72x272K4 ST72x371N4 ST72x372J4 ST72x671N4 ST72x671N6
Starter Kit supporting the device
ST7 MDT1 Starter kit or EPB
ST7 MDT2 Starter kit or EPB
ST7 MDT4 Starter kit or EPB
x = T, if the device is an OTP, E, if the device is an EPROM.
7/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
4 APPENDIX 2
This appendix provides the required information for programming a device supported by the MDT1, MDT2 and MDT4 EPBs or starter kits. The five JTAG pins and three test mode pins (M0, M1 and M2) with their associated pin numbers are specified for each device. 4.1 ST7 MDT1 EPB OR STARTER KIT
ST7 Device
Sales type ST72x101G1 ST72x101G2 ST72x212G2 ST72x213G1 ST72x251G1 ST72x251G2 EPROM E2 RAM Package 4K 8K 8K 4K 4K 8K 256 256 256 256 256 256 SO28 SDIP32 SO28 SDIP32 SO28 SDIP32 SO28 SDIP32 SO28 SDIP32 SO28 SDIP32 PA3 22 26 22 26 22 26 22 26 22 26 22 26 PA2 23 27 23 27 23 27 23 27 23 27 23 27 PA1 24 28 24 28 24 28 24 28 24 28 24 28 PA0 25 29 25 29 25 29 25 29 25 29 25 29
Pin Numbers
JTDI JTCK JTRST JTMS JTDO PC3 14 16 14 16 14 16 14 16 14 16 14 16 M2 9 11 9 11 9 11 9 11 9 11 9 11 M1 10 12 10 12 10 12 10 12 10 12 10 12 M0 11 13 11 13 11 13 11 13 11 13 11 13 PB2 PB1 PB0 Vpp Reset Oscin Vdd Vss 26 30 26 30 26 30 26 30 26 30 26 30 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 28 32 28 32 28 32 28 32 28 32 28 32 27 31 27 31 27 31 27 31 27 31 27 31
Programming tool W1 connector
5
1
9
3
7
12
10
8
16
4
2
N.C 15
x = T, if the device is an OTP, E, if the device is an EPROM, N.C., means not connected.
8/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
4.2 ST7 MDT2 EPB OR STARTER KIT
ST7 Device
Sales type ST72x121J2 ST72x121J4 ST72x311J2 ST72x311J4 ST72x311N2 ST72x311N4 ST72x331J2 ST72x331J4 ST72x331N2 ST72x331N4 EPROM 8K 16K 8K 16K 8K 16K 8K 16K 8K 16K E2 256 256 256 256 RAM 384 512 384 512 384 512 384 512 384 512 Package TQFP44 SDIP42 TQFP44 SDIP42 TQFP44 SDIP42 TQFP44 SDIP42 TQFP64 SDIP56 TQFP64 SDIP56 TQFP44 SDIP42 TQFP44 SDIP42 TQFP64 SDIP56 TQFP64 SDIP56 PA7 37 30 37 30 37 30 37 30 52 40 52 40 37 30 37 30 52 40 52 40 PA6 36 29 36 29 36 29 36 29 51 39 51 39 36 29 36 29 51 39 51 39 PA5 35 28 35 28 35 28 35 28 50 38 50 38 35 28 35 28 50 38 50 38 PA4 34 27 34 27 34 27 34 27 49 37 49 37 34 27 34 27 49 37 49 37
Pin Numbers
JTDI JTCK JTRST JTMS JTDO PA3 31 24 31 24 31 24 31 24 46 34 46 34 31 24 31 24 46 34 46 34 M2 M1 M0 PB2 PB1 PB0 4 3 2 41 40 39 4 41 4 41 4 41 7 55 7 55 4 41 4 41 7 55 7 55 3 40 3 40 3 40 6 54 6 54 3 40 3 40 6 54 6 54 2 39 2 39 2 39 5 53 5 53 2 39 2 39 5 53 5 53 Vpp Reset Oscin 38 31 38 31 38 31 38 31 53 41 53 41 38 31 38 31 53 41 53 41 39 32 39 32 39 32 39 32 54 42 54 42 39 32 39 32 54 42 54 42 42 35 42 35 42 35 42 35 59 45 59 45 42 35 42 35 59 45 59 45
Programming tool W1 connector
5
1
9
3
7
12
10
8
16
4
2
4.3 ST7 MDT4 EPB OR STARTER KIT
ST7 Device
Sales type ST72x272K2 ST72x272K2 ST72x371N4 ST72x372J4 ST72x671N4 ST72x671N6 EPROM E2 RAM Package 8K 16K 16K 16K 16K 32K 384 512 512 512 512 1K SO34 SDIP32 SO34 SDIP32 TQFP64 SDIP56 SDIP42 TQFP64 SDIP56 TQFP64 SDIP56 PA7 29 27 29 27 28 46 34 28 46 28 46 PA6 30 28 30 28 29 47 35 29 47 29 47 PA5 31 29 31 29 30 48 36 30 48 30 48 PA4 32 30 32 30 31 49 37 31 49 31 49
Pin Numbers
JTDI JTCK JTRST JTMS JTDO M2 25 24 25 24 20 38 31 20 38 20 38 3 3 3 3 43 3 2 43 3 43 3 M1 2 2 2 2 42 2 1 42 2 42 2 M0 1 1 1 1 41 1 42 41 1 41 1 PC6 DA3 DA2 DA1 Vpp Reset Oscin Vdd 34 32 34 32 40 56 41 40 56 40 56 33 31 33 31 38 54 40 38 54 38 54 28 26 28 26 27 45 33 27 45 27 45 8 8 8 8 11 31 25 11 31 11 31 Vss 7 7 7 7 9 29 23 9 29 9 29
Programming tool W1 connector
5
1
9
3
7
12
10
8
16
4
2
N.C
15
x = T, if the device is an OTP, E, if the device is an EPROM, N.C., means not connected.
9/10
ST7 SERIAL TEST CONTROLLER PROGRAMMING
THE PRESENT NOTE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH A NOTE AND/OR THE USE MADE BY CUSTOMERS OF THE INFORMATION CONTAINED HEREIN IN CONNEXION WITH THEIR PRODUCTS."
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics (c)2000 STMicroelectronics - All Rights Reserved. Purchase of I2C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips. STMicroelectronics Group of Companies Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain Sweden - Switzerland - United Kingdom - U.S.A. http://www.st.com
10/10


▲Up To Search▲   

 
Price & Availability of AN987

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X